package homework4;

import java.util.Scanner;

public class Chapter01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入任意一个整数：");
        int i = sc.nextInt();
        int j=1;
            for (j=1;j>0;j++){
                if ((j*j)==i&&i==(j*j)){
                    System.out.println(i+"是"+j+"的平方");
                    break;
                }
            }
    }
}
